//
//  MyStockListController.h
//  Stock
//
//  Created by blacksun on 11-6-16.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

/**
  个股透视  
 */
#import <UIKit/UIKit.h>
#import "MyStock.h"
#import "StockListController.h"
#import "MyStockService.h"
#import "TimerCallback.h"
#import "SQLiteInstanceManager.h"
#import "StockRadar.h"

#define kUpdateSuccessNotification   @"kUpdateSuccessNotification"

#define kTableViewEditStateTag            1434243
#define kTableViewNormalStateTag          2312332

#define kStockNameTag                     1231231
#define kStockTodayPriceTag               3213122
#define kStockChangePriceTag              1239432
#define kStockChangeRateTag               1245232
#define kStockDifferenceTag               1234987

@interface RadarSettingListController : UIViewController <ServiceDelegate>{
    UITableView *tableView;
    NSMutableArray *localStocks;//stocks in databses
    NSMutableArray *localRadars;
    NSArray *remoteStocks;//stocks query from server
    NSTimer *updateTimer;
    TimerCallback *timerCallback;
    NSNotificationCenter *updateSuccessNotification;
    MyStockService *myStockService;
    UIBarButtonItem *leftButton;
    UIBarButtonItem *rightButton;
    UIBarButtonItem *doneButton;
    NSMutableArray *wantDeleteRadars;
}
@property(nonatomic ,retain) MyStockService *myStockService;
@property(nonatomic ,retain) NSNotificationCenter *updateSuccessNotification;
@property(nonatomic ,retain) IBOutlet UITableView *tableView;
@property(nonatomic ,retain) NSMutableArray *localStocks;
@property(nonatomic ,retain) NSArray *remoteStocks;
@property(nonatomic ,retain) NSTimer *updateTimer;
@property(nonatomic ,retain) TimerCallback *timerCallback;
@property(nonatomic ,retain) UIBarButtonItem *leftButton;
@property(nonatomic ,retain) UIBarButtonItem *rightButton;
@property(nonatomic ,retain) UIBarButtonItem *doneButton;
@property(nonatomic ,assign) NSMutableArray *localRadars;
@property(nonatomic ,retain) NSMutableArray *wantDeleteRadars;
-(void) didClikedAddButton;
-(void) didClikedDoneButton;
-(void) didClikedEditButton;
-(void) updateLocalStocks;



@end
